package com.xnyzc.lhy.mis.entity.worksheet;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
*
* 工单交互
*
* @author cuixiaojian
* @since 2019-11-04
*/
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="OaSysWorksheetOperate对象", description="工单交互")
public class OaSysWorksheetOperate implements Serializable {

private static final long serialVersionUID = 1L;

    @TableId(value="id", type = IdType.INPUT)
    private Long id;

    @ApiModelProperty(value = "worksheet_id")
    private Long worksheetId;

    @ApiModelProperty(value = "源操作id")
    private Long sourceId;

    @ApiModelProperty(value = "交互名称    create； update； updateLevel")
    private String name;

    @ApiModelProperty(value = "调用方")
    private String fromSource;

    @ApiModelProperty(value = "被调用方")
    private String toSource;

    @ApiModelProperty(value = "调用时间")
    private Date beginTime;

    @ApiModelProperty(value = "结束时间")
    private Date endTime;

    @ApiModelProperty(value = "调用数据调用数据")
    private String data;

    @ApiModelProperty(value = "调用结果")
    private String result;


    public static final String ID = "id";

    public static final String WORKSHEET_ID = "worksheet_id";

    public static final String SOURCE_ID = "source_id";

    public static final String NAME = "name";

    public static final String FROM_SOURCE = "from_source";

    public static final String TO_SOURCE = "to_source";

    public static final String BEGIN_TIME = "begin_time";

    public static final String END_TIME = "end_time";

    public static final String DATA = "data";

    public static final String RESULT = "result";

}
